package com.hyperfix.models.washer.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author JiangChunYu
 * 2024/4/3
 */
@Data
@TableName("record")
public class Record implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 数据记录编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 管线编号
     */
    private Integer pipelineId;
    /**
     * 温度
     */
    private Double temperature;
    /**
     * 压力
     */
    private Double pressure;
    /**
     * 油压
     */
    private Double oilPressure;
    /**
     * 套压
     */
    private Double casingPressure;
    /**
     * 差压
     */
    private Integer diffPressure;
    /**
     * 流量
     */
    private Integer flow;
    /**
     * 总流量
     */
    private Integer totalFlow;
    /**
     * 记录时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime recordTime;
}
